package cn.sumpu.app.wlcity.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.wlcity.domain.Content;
import cn.sumpu.app.wlcity.exception.AppBusinessException;

public interface ContentDao {
	public void insertContent(Content content) throws AppBusinessException;

	public List<Content> getContentList(Map<String,Object> map)throws AppBusinessException;
	
	public int getContentListCount(Map<String,Object> map)throws AppBusinessException;
	
	public Content getContentById(String identifier)throws AppBusinessException;
	
	public void updateContent(Content content)throws AppBusinessException;
	
	public void upEachContentSort(String contentType)throws AppBusinessException;
	
	public void downEachVoteSort(Map<String, Object> map) throws AppBusinessException;
	
	public void moveContentSort(Map<String, Object> map)throws AppBusinessException;
	
	public void deleteContent(String identifier)throws AppBusinessException;
	
}
